import { defineStore } from 'pinia'

export const useQueryStore = defineStore(
	'query',
	() => {
		const keyword = ref('')
		const name = ref('')

		const filterShow = ref(false)

		const totalEpScore = ref('')
		const rate24HL = ref('')
		const isRzgc = ref('')
		const guarantee = ref('')
		const sortTitle = ref('')
		const sortValue = ref('')
		const filter = ref('')
		const snId = ref('')

		return {
			keyword,
			name,
			totalEpScore,
			rate24HL,
			isRzgc,
			guarantee,
			sortTitle,
			sortValue,
			filter,
			snId,
			filterShow,
		}
	},
	{
		persist: true,
	},
)
